package com.example.partner.service.impl;


import com.example.partner.mapper.UserMapper;
import com.example.partner.pojo.User;
import com.example.partner.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public User getOneUserByName(String name) {
        return this.userMapper.selectByPrimaryKey(name);
    }
}
